package com.project.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;

@TableName("live_course")
@Data
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(value = PropertyNamingStrategies.SnakeCaseStrategy.class)
public class LiveCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 讲座ID：
     */
    @TableId(value = "course_id", type = IdType.AUTO)
    private Integer courseId;

    /**
     * 讲座名称：
     */
    @TableField(value = "course_name")
    private String courseName;

    /**
     * 开始时间：
     */
    @TableField(value = "start_time")
    private Timestamp startTime;

    /**
     * 内容
     */
    @TableField(value = "description")
    private String description;

    /**
     * 来源表：
     */
    @TableField(value = "source_table")
    private String sourceTable;

    /**
     * 二维码：
     */
    @TableField(value = "qrcode")
    private String qrcode;

    /**
     * 预约人数：
     */
    @TableField(value = "reserved_num")
    private Integer reservedNum;

    /**
     * 创建时间：
     */
    @TableField(value = "create_time")
    private Timestamp createTime;

}
